<include file="__TPL__/Common/header.html"/>
	<link rel="stylesheet/less" href="__TPL__/Public/Css/member.less" />
	<!-- 载入less.js -->
	<script type="text/javascript" src="__TPL__/Public/Js/less-1.5.0.min.js"></script>
		<script type="text/javascript" src="__TPL__/Public/Js/address.js"></script>
	<title>Document</title>
</head>
<div id="member" class="Swd">
	<include file="__TPL__/Member/member-left.html"/>
	<div class="address FR">
		<dl class="address-title">
		<dt>
			<a href="">收货地址</a>
		</dt>
		<dd>
			<span>带*号为必填项</span>
		</dd>
		<dd class="c-address">
							<form action="{|U:'Member/address'}" method="post">
							<p class="e-form">
								<label >收货人：</label><input type="text" name="realname" />
							</p>
							<p class="e-form">
								<label >邮箱:</label><input type="text" name="email" />
							</p>
							<p class="e-form area">
							<label >收货地址：</label>
								<script language="javascript">
								var s=["s1","s2","s3"];
								var opt0 = ["请选择省","请选择市","请选择县（区）"];
								function setup(){
								 for(i=0;i<s.length-1;i++)
								  document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")");
								 change(0);
								}
								window.onload=function(){
								setup()	
									
								};
								$(function(){
									
									$('#s3').live('change',function(){
										var dj = $('#s1').val() + '省,' + $('#s2').val() + '市,' + $('#s3').val();
										// $('#address').val(dj);
									})
								})
								</script>

								<select id="s1" name="province">
									<option>省份</option>
								</select>
								<select id="s2" name="city">
									<option>地级市</option>
								</select>
								<select id="s3" name="county">
									<option>市、县级市、县</option>
								</select>
								
							</p>
							<p class="e-form">
								<input type="hidden" name="address" id="address" value="">
								<label >街道:</label>
								<input type="text" name="addressfull"/>
							</p>
							<p class="e-form">
								<label >邮编:</label><input type="text" name="code" />
							</p>
							
							<p class="e-form">
								<label >手机号码:</label><input type="text" name="mbphonenumber" />
							</p>
							<p class="e-form">
								<label >固定电话：</label><input type="text" name="phonenumber" />
							</p>
							<p class="sub">
								<input type="submit" value="完成" />
							</p>
							</form>
							<p class="finish-address">
								<span class="addr-title">已保存的收货地址</span>
								<div class="cleardiv"></div>
								
							</p>
							<ul>
							<foreach from="$addressData" key="$k" value="$v">
									<li>{$v.realname}----{$v.address}</li>
							</foreach>
							</ul>
			
		</dd>	
		</dl>
	</div>
</div>
<include file="__TPL__/Common/footer.html"/>